package org.spring.springboot.domain.mongoEntity;

import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@Document(collection = "baolan")
public class M_BaoLan implements Serializable {
    @Id
    private Long id;

    private String name;
}
